<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>学校论坛登录界面</title>
<script type="text/JavaScript" src="md5.js"></script>
<script language="javascript">  
    function isEmpty(){  
        var id = document.login.usrname.value ;  
        var pwd = document.login.password.value ;    
        if (id ==""){  
            alert("请输入用户名!");  
            return false ;  
        }  
       
        if (pwd ==""){  
            alert("请输入密码!");  
            return false ;  
        }  
    
    }   
</script> 
</head>
<body style="background:url(bg.jpg) repeat-x #fff;">
<img src="banner.jpg"/>
	<form id="login" name="login" method="get" action="login.php">
	<table align="center" cellpadding="10">
		<tr>
			<th colspan="2">学校论坛登录界面</th>
		</tr>
		<tr>
			<td align="right">用户名：</td>
			<td><input type="text" name="usrname" size="20"></td>
		</tr>
		<tr>
			<td align="right">密码：</td>
			<td><input type="password" name="password" size="20"></td>
		</tr>
		<tr>
			<td align="right">身份：</td>
			<td>
				<input type="radio" name="identity" value="teacher">教师
				<input type="radio" name="identity" value="student" checked>学生
			</td>
		</tr>
		<tr>
			<td align="right"><input type="submit" value="登录" onClick="return isEmpty()"></td>
			<td align="center"><input type="button" value="注册" onclick="jump2register()"></td>
		</tr>
	</table>
	</form>
</body>
</html>
